﻿<!DOCTYPE>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
  <title>自动开卡规则维护</title>
  <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
  <link rel="stylesheet" href="/InSiteWebApplication/Content/webuploader/webuploader.css" />
  <style type="text/css">
    .l-btn2 {
      border: #d2d2d2 1px solid;
      font-family: Tahoma, Helvetica;
      font-size: 10px;
      cursor: pointer;
      font-weight: 500;
      text-decoration: none;
      height: 26px;
      color: #fff;
      background: #02bfbf;
    }

    .l-btn2:hover {
      color: #fff;
      background: #05d2d2;
    }

    .btnNews {
      height: 20px;
      width: 50px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 9px;
      margin: 2px 2px;
      cursor: pointer;
      color: Black;
      border-radius: 1px;
      box-shadow: 0px 1px 0px #3d6b93;
      line-height: 10px;
      text-align: center;
      text-decoration: none;
      transition: background-color 0.15s ease-in-out;
    }
  </style>
</head>

<body>
  <div id="mainSec">
    <div class="panelSection">
      <div class="easyui-panel " title="查询区域" style="padding: 3px;"
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
        <form id="queryForm" action="">
          <div style="margin: 3px 0px 3px 3px">
            <div style="float: left;">
              <div class="divLabel" style="margin-bottom: 5px">
                件号：</div>
              <input id="txtProductName" name="productName" class="easyui-textbox" style="width: 120px;height: 20px" />
            </div>
            <div style="float: left; margin-left: 10px">
              <div class="divLabel" style="margin-bottom: 5px">
                创建人：</div>
              <input id="txtCreateName" name="createName" class="easyui-textbox" style="width: 120px;height: 20px" />
            </div>
            <div style="float: left; margin-left: 10px">
              <div class="divLabel" style="margin-bottom: 5px">
                工艺员：</div>
              <input id="txtTechnologyName" name="technologyName" class="easyui-textbox"
                style="width: 120px;height: 20px" />
            </div>
            <div style="float: left; margin-left: 10px;">
              <div class="divLabel" style="margin-bottom: 5px">
                主制工区：</div>
              <select style='width: 120px; height: 20px' id='selWorkCenter' name="workCenter"
                data-options="editable:false,panelHeight:'auto'" class='easyui-combobox'>
              </select>
            </div>
            <div style="float: left; margin-left: 10px;">
              <div class="divLabel" style="margin-bottom: 5px">
                件号主制单元：</div>
              <select style='width: 120px; height: 20px' id='ddlProductTeam' name="ddlProductTeam"
                data-options="editable:true,panelHeight:'auto'" class='easyui-combobox'>
              </select>
            </div>
            <div style="float: left; margin-left: 10px;">
              <div class="divLabel" style="margin-bottom: 5px">
                是否切断件：</div>
              <select style='width: 100px; height: 20px' id='selIsCutContainer' name="isCutContainer"
                data-options="editable:false,panelHeight:'auto'" class='easyui-combobox'>
                <option value="">请选择</option>
                <option value="1">是</option>
                <option value="0">否</option>
              </select>
            </div>
            <div style="float: left; margin-left: 10px;">
              <div class="divLabel" style="margin-bottom: 5px">
                是否领料：</div>
              <select style='width: 100px; height: 20px' id='selIsSelfMfg' name="isSelfMfg"
                data-options="editable:false,panelHeight:'auto'" class='easyui-combobox'>
                <option value="">请选择</option>
                <option value="0">是</option>
                <option value="1">否</option>
              </select>
            </div>
            <div style="float: left; margin-left: 10px;">
              <div class="divLabel" style="margin-bottom: 5px">
                状态：</div>
              <select style='width: 100px; height: 20px' id='selStatus' name="status"
                data-options="editable:false,panelHeight:'auto'" class='easyui-combobox'>
                <option value="">请选择</option>
                <option value="1">启用</option>
                <option value="0">停用</option>
              </select>
            </div>
            <div style="float: left; margin-left: 20px">
              <a id="btnSearch" href='#' class="easyui-linkbutton" style="margin-top: 16px; width: 80px">
                查询</a> <a id="btnReset" href='#' class="easyui-linkbutton" style="margin-top: 16px;
                                margin-left: 5px;">重置</a>
            </div>
            <div style="clear: both">
            </div>
          </div>
        </form>
      </div>
    </div>
    <div class="panelSection">
      <div class="easyui-panel " title="结果区域" style="padding: 3px;"
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
        <div style="margin: 3px 0px 3px 3px">
          <table id="gdContainerStartRuleInfo" class="easyui-datagrid" style="width: 100%;
                        height: 350px" data-options="rownumbers:true">
          </table>
          <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            id:'pageGo'
                    }]  
                ">
          </div>
        </div>
      </div>
    </div>
    <div class="panelSection">
      <div class="easyui-panel " title="按钮区域" style="width:100%"
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
        <div style="margin: 3px 0px 3px 3px">
          <a id="btnAdd" href='#' class="easyui-linkbutton"
            style="width: 80px; height: 22px;height: 25px;margin-top:-18px;padding-top:5px">添加</a>
          <a id="btnEdit" href='#' class="easyui-linkbutton"
            style="width: 80px; height: 22px;height: 25px;margin-top:-18px;padding-top:5px">修改</a>
          <a id="btnChangeStatus" href='#' class="easyui-linkbutton"
            style="width: 100px;height: 25px;margin-top:-18px;padding-top:5px">启用/停用</a>
          <a id="btnExportRule" href='#' class="easyui-linkbutton"
            style="width: 100px;height: 25px;margin-top:-18px;padding-top:5px">导出数据</a>
          <a id="btnImportRule" href='#' style="width: 150px; height: 22px;">EXCEL导入</a>
          <a id="btnInportModelDL" href='#' class="easyui-linkbutton"
            style="width: 100px; height: 22px;height: 25px;margin-top:-18px;padding-top:5px">导入模板下载</a>
          <span style="color:red;font-weight:bold;margin-left: 10px;">内部系统，禁止处理涉密信息！</span>
        </div>
      </div>
    </div>
  </div>
  <div id="dg" style="padding: 20px 0 0 0; display: none; width: 500px; height: 450px" data-options="title:'自动开卡规则编辑'">
    <form id="dgAutoStartForm" action="">
      <div style="margin-top: 10px; float: left">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          件号：</div>
        <input id="asInProductName" name="inProductName" class="easyui-textbox" style="width: 180px;
                height: 26px" data-options="required:true" />
        <a id='btnProductNameSearch' href='#' class='easyui-linkbutton' data-options="iconCls:'icon-search'"
          style="height: 26px; margin-left: -4px"></a><a id='btnProductNameCancel' href='#' class='easyui-linkbutton'
          data-options="iconCls:'icon-cancel'" style="height: 26px;
                    margin-left: -4px"></a>
      </div>
      <div style="margin-top: 10px; float: left">
        <input type="hidden" id="productName" name="productName" />
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          零件名称：</div>
        <input id="asProductDesc" name="productDesc" style="width: 150px; height: 26px; border: none;
                outline: none; background: transparent;" readonly="readonly" />
        <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
          版本：</div>
        <input id="asProductRev" name="productRev" style="width: 150px; height: 26px; border: none;
                outline: none; background: transparent;" readonly="readonly" />
      </div>
      <div style="margin-top: 10px; float: left">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          工艺路线：</div>
        <input id="asWorkflowName" name="workflowName" style="width: 150px; height: 26px;
                border: none; outline: none; background: transparent;" readonly="readonly" />
        <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
          版本：</div>
        <input id="asWorkflowRev" name="workflowRev" style="width: 150px; height: 26px; border: none;
                outline: none; background: transparent;" readonly="readonly" />
      </div>
      <div style="margin-top: 10px; float: left">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          主制工区：</div>
        <select style='width: 150px; height: 26px' id='asWorkCenter' name="workCenterID"
          data-options="editable:false,required:true" class='easyui-combobox'>
        </select>
        <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
          工艺员：</div>
        <select style='width: 150px; height: 26px' id='asTechnologyName' name="technologyEmpID"
          data-options="required:true" class='easyui-combobox'>
        </select>
      </div>
      <div style="margin-top: 10px; float: left">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          批次类型：</div>
        <select style='width: 150px; height: 26px' id='asContainerType' name="containerType"
          data-options="editable:false,panelHeight:'auto',required:true" class='easyui-combobox'>
          <option value="2">批量加工</option>
          <option value="7">单件单卡</option>
        </select>
        <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
          是否领料：</div>
        <select style='width: 150px; height: 26px' id='asIsSelfMfg' name="isSelfMfg"
          data-options="value:1,editable:false,panelHeight:'auto',required:true" class='easyui-combobox'>
          <option value="1">否</option>
          <option value="0">是</option>
        </select>
      </div>
      <div style="margin-top: 10px; float: left">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          是否切断件：</div>
        <select style='width: 150px; height: 26px' id='asIsCutContainer' name="isCutContainer"
          data-options="editable:false,panelHeight:'auto',required:true" class='easyui-combobox'>
          <option value="0">否</option>
          <option value="1">是</option>
        </select>
      </div>
      <div style="margin-top: 10px; float: left" id="cutSection">
        <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
          分卡数：</div>
        <input id="asCutQty" name="cutQty" class="easyui-numberbox" style="width: 150px;
                height: 26px" />
        <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
          分卡工序：</div>
        <select style='width: 150px; height: 26px' id='asCutStartStep' name="cutStartStep"
          data-options="editable:false,panelHeight:'auto'" class='easyui-combobox'>
        </select>
      </div>
    </form>
    <div style="margin-top: 40px; text-align: right; padding-right: 10px; float: right">
      <a href="javascript:void(0);" id="btnRuleSave" class="easyui-linkbutton not-custom l-btn2 " data-options=""
        style="margin-left: 0px; height: 30px; width: 100px">确定</a>
      <a href="javascript:void(0);" id="btnRuleCancel" class="easyui-linkbutton not-custom l-btn2 " data-options=""
        style="margin-left: 10px; height: 30px; width: 60px">取消</a>
    </div>
  </div>
  <div id="dgRuleImport" style="display: none">
    <table id="ruleImportTable" class="easyui-datagrid" data-options="rownumbers:true">
    </table>
  </div>
  <div id="dgOperaLog" style="display: none">
    <div class="dvgrid-cellwarp" style="background: #fff; margin: 3px 0px 3px 3px">
      <table id="operaLogTable" class="easyui-datagrid" data-options="rownumbers:true,fitColumns:true">
      </table>
    </div>
  </div>
</body>

</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript" src="/InSiteWebApplication/Content/webuploader/webuploader.js"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
  document.write('<script src="/InSiteWebApplication/Scripts/CustomPageJs/AutoStartContainer/AutoStartContainerRuleManagePage.js?v=' + new Date().getTime() + '" type="text/javascript"><\/script>');
</script>